API Docs for: 0.0.1
Show:

poly (Function) Class

Defined in: jsaSndLib\poly.js:12
Module: poly.js

Item Index

Methods

(poly)

(
  • funciton
  • poly
  • node
)
Interface Object

Creates a pool of instances of a sound model so that they can be played polyphonically

Parameters:

  • funciton Sound Model Factory Function

    to be used for creating instances of a sound model

  • poly Number

    How large the pool (maximum polyphony) should be

  • node AudioNode

    that the polyphonic model(s) should connect to (managed dynamically as nodes are called into and put out of action)

Returns:

Interface Object:

the "soundbank" Interface object that exposes all the other methods in this module.

getSnd

()

gets an available sound from the polyphony pool

setParam

(
  • parameter
  • parameter
)

Sets a parameter value (on all polyphonic instances in the pool)

Parameters:

  • parameter String

    name

  • parameter Number

    value

setParamNorm

(
  • parameter
  • parameter
)

Sets a normalized parameter value (in [0,1] (on all polyphonic instances in the pool)

Parameters:

  • parameter String

    name

  • parameter Number

    value